import * as React from 'react';
import { renderRoutes } from "react-router-config";

import {Router} from 'react-router';

import {history} from './Utils';
import {routes} from './Router';
import WithMenu from './Pages/_WithMenu';
import LoginWrapper from './Pages/_LoginWrapper';
class App extends React.Component {
  public render() {
    return (
      <div className="App">
          <LoginWrapper>
            <WithMenu>
              <Router history={history}>{renderRoutes(routes)}</Router>
             </WithMenu>
          </LoginWrapper>
      </div>
    )
  }
}

export default App;
